// 业务交互

import * as type from './type'

const actions = {
    // 增加功能
    increment({ commit }, value) {
        // 可以发生请求
        let action = {
            type: type.INCREASE_NUM,
            payload: value
        }
        commit(action)
    },
    // 减少功能
    reduce({ commit }, value) {
        let action = {
            type: type.REDUCE_NUM,
            payload: value
        }
        commit(action)
    }
}

export default actions